import Layout from "@/layout";

const marketingRouter = {
  path: "/marketing/full",
  component: Layout,
  redirect: "noRedirect",
  name: "marketing",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "营销活动",
    abbre: "营销",
    icon: "left_menu_marketing",
    navigation: "/marketing",
    id: "407"
  },
  children: [
    // 满减满赠
    {
      path: "/marketing/full",
      component: () => import("@/views/marketing/marketingFull"),
      name: "marketing_full",
      hidden: false,
      meta: {
        title: "满减满赠",
        noCache: true,
        navigation: "/marketing/full",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/full/add",
      component: () => import("@/views/marketing/marketingFull_add"),
      hidden: true,
      name: "marketing_full_add",
      meta: {
        title: "新增活动",
        bread: "满减满赠,新增活动",
        noCache: true,
        navigation: "/marketing/full",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/full/see/:type/:id",
      component: () => import("@/views/marketing/marketingFull_see"),
      hidden: true,
      name: "marketing_full_see",
      meta: {
        title: "活动详情",
        bread: "满减满赠,活动详情",
        noCache: true,
        navigation: "/marketing/full",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/full/edit/:type/:id",
      component: () => import("@/views/marketing/marketingFull_edit"),
      hidden: true,
      name: "marketing_full_edit",
      meta: {
        title: "活动编辑",
        bread: "满减满赠,活动编辑",
        noCache: true,
        navigation: "/marketing/full",
        icon: "menu_big_data"
      }
    },
    // 积分商城
    {
      path: "/marketing/points",
      component: () => import("@/views/marketing/mareingPointsMall"),
      name: "marketing_points",
      hidden: false,
      meta: {
        title: "积分商城",
        noCache: true,
        navigation: "/marketing/points",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/points/record",
      component: () => import("@/views/marketing/mareingPointsMall_record"),
      name: "marketing_points_record",
      hidden: true,
      meta: {
        title: "兑换记录",
        bread: "积分商城,兑换记录",
        noCache: true,
        navigation: "/marketing/points",
        icon: "menu_big_data"
      }
    },
    // coupon
    // 优惠券
    {
      path: "/marketing/coupon",
      component: () => import("@/views/marketing/marketingCoupon"),
      name: "marketing_coupon",
      hidden: false,
      meta: {
        title: "优惠券",
        noCache: true,
        navigation: "/marketing/coupon",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/coupon/add",
      component: () => import("@/views/marketing/marketingCoupon_add"),
      name: "marketing_coupon_add",
      hidden: true,
      meta: {
        title: "优惠券",
        bread: "优惠券,新增优惠券",
        noCache: true,
        navigation: "/marketing/coupon",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/coupon/see/:id",
      component: () => import("@/views/marketing/marketingCoupon_see"),
      name: "marketing_coupon_see",
      hidden: true,
      meta: {
        title: "优惠券",
        bread: "优惠券,查看优惠券",
        noCache: true,
        navigation: "/marketing/coupon",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/coupon/edit/:id",
      component: () => import("@/views/marketing/marketingCoupon_edit"),
      name: "marketing_coupon_edit",
      hidden: true,
      meta: {
        title: "优惠券",
        bread: "优惠券,编辑优惠券",
        noCache: true,
        navigation: "/marketing/coupon",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/coupon/record/:id",
      component: () => import("@/views/marketing/marketingCoupon_record"),
      name: "marketing_coupon_record",
      hidden: true,
      meta: {
        title: "领取记录",
        bread: "优惠券,领取记录",
        noCache: true,
        navigation: "/marketing/coupon",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/timelimit",
      component: () => import("@/views/marketing/marketingTimeLimit"),
      name: "marketing_timelimit",
      hidden: false,
      meta: {
        title: "限时特卖",
        noCache: true,
        navigation: "/marketing/timelimit",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/timelimit/add",
      component: () => import("@/views/marketing/marketingTimeLimit_add"),
      name: "marketing_timelimit_add",
      hidden: true,
      meta: {
        title: "新增活动",
        bread: "限时特卖,新增活动",
        noCache: true,
        navigation: "/marketing/timelimit",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/timelimit/see/:id",
      component: () => import("@/views/marketing/marketingTimeLimit_see"),
      name: "marketing_timelimit_see",
      hidden: true,
      meta: {
        title: "查看活动",
        bread: "限时特卖,查看活动",
        noCache: true,
        navigation: "/marketing/timelimit",
        icon: "menu_big_data"
      }
    },
    {
      path: "/marketing/timelimit/edit/:id",
      component: () => import("@/views/marketing/marketingTimeLimit_edit"),
      name: "marketing_timelimit_edit",
      hidden: true,
      meta: {
        title: "编辑活动",
        bread: "限时特卖,编辑活动",
        noCache: true,
        navigation: "/marketing/timelimit",
        icon: "menu_big_data"
      }
    }
  ]
};

export default marketingRouter;
